package com.baizhi.service.impl;

import com.baizhi.entity.CmfzRole;
import com.baizhi.mapper.CmfzRoleMapper;
import com.baizhi.service.CmfzRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ljh
 * @since 2020-08-30
 */
@Service
public class CmfzRoleServiceImpl extends ServiceImpl<CmfzRoleMapper, CmfzRole> implements CmfzRoleService {

    @Override
    public Set<String> getAllRolesByUsername(String username) {
        return baseMapper.getAllRolesByUsername(username);
    }

    @Override
    public Set<String> getAllPermissionsByUsername(String username) {
        return baseMapper.getAllPermissionsByUsername(username);
    }

    @Override
    public List<CmfzRole> selectAllRole() {
        return baseMapper.selectList(null);
    }
}
